package org.apache.juli.logging.log4j;

import org.apache.log4j.Logger;
import org.apache.juli.logging.Log;

/**
 * @author Stepan Koltsov
 */
public class Log4jLog extends Logger implements Log {
    protected Log4jLog(String name) {
        super(name);
    }

    public static Log4jLog getLogger(Class clazz) {
        return (Log4jLog) getLogger(clazz.getName(), new Log4jLogFactory());
    }

    public static Log4jLog getLogger(String name) {
        return (Log4jLog) getLogger(name, new Log4jLogFactory());
    }

    public boolean isErrorEnabled() {
        return true;
    }

    public boolean isFatalEnabled() {
        return true;
    }

    public boolean isWarnEnabled() {
        return true;
    }
} //~
